using System;
using System.Collections.Generic;

namespace RFS.Domain.Sys
{
    public class ConfigSys
    {
        public bool AccRepoInitedOK{ get; set; }=false;
        //        private string AccessKeyId = "LTAI5tG3My56cvgqfJ41WaK3";

        // private string AccessKeySecret = "6LJK7a3HC6xa9VPySrEONYf9aUICxJ";
        public string AliYxAccessKey_ID { get; set; } = "LTAI5tG3My56cvgqfJ41WaK3";
        public string AliYxAccessKey_secret { get; set; } = "6LJK7a3HC6xa9VPySrEONYf9aUICxJ";
        public bool TestMode { get; set; } = false;
        public MenuMain MainMenu { get; set; }
        public bool SmartChoosePrice { get; set; } = true;
        public bool CompareModeOfCash { get; set; } = true;
        public bool CompactFormStyle { get; set; } = true ;
        public bool ShowGridDetails { get; set; } = false;
        public bool ProductRepoInitedCorrectly { get; set; } = false;
        public int  ZuhuoQuantityRangeMin { get; set; } =100 ;
        public int  ZuhuoQuantityRangeMax { get; set; } =300 ;
        public (int min, int max) ZuhuoQuantityRange { get=>(ZuhuoQuantityRangeMin,ZuhuoQuantityRangeMax);   }  
        public (int min, int max) ZuhuoQuantityRangeInZa { get=>(ZuhuoQuantityRange.min/QuantiyPerZaInPingYuan, ZuhuoQuantityRange.max/QuantiyPerZaInPingYuan);   } 
        public int  QuantiyPerZaInPingYuan { get; set; } =  10 ;
        public int QunatityKipaPerZa { get; set; } = 20;
        public string ZuhuoEditor { get; set; } = "赵万洪";
        public string ZuhuoDoubleChecker { get; set; }= "王建德";
        public bool Try1KeyGrouping { get; set; } = true;
        public bool SaveAlsoZuhua { get; set; } = false;
        public string DelPwd { get; set; } = "a";
        public string FuzuGongyingShangMa { get; set; } = "28282";
        public string FuzuDiKuai { get; set; } = "DK00";
        public string ZahuaGridLayout { get; set; } = "";
        public string ZuhuaGridLayout { get; set; } = "";
        public DateTime KapiCodingBaseDate { get; set; } = new DateTime(2024, 12, 1);

        public List<User> Users { get; set; } = new List<User>();
        public User CurrentUser { get; set; }
    }

    public class User
    {
        public string  Name { get; set; }
        public string  NameCn { get; set; }
        public string  Pwd { get; set; }
    }
}